{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 部分官方文档"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "* UE4中的C++编程简介\n",
    "    * https://docs.unrealengine.com/zh-CN/Programming/Introduction/index.html\n",
    "* 设置虚幻引擎的Visual Studio\n",
    "    * https://docs.unrealengine.com/zh-CN/Programming/Development/VisualStudioSetup/index.html\n",
    "* 矢量表达式\n",
    "    * https://docs.unrealengine.com/zh-CN/Engine/Rendering/Materials/ExpressionReference/Vector/index.html\n",
    "* 编程快速入门，创建首个代码项目，并添加新的C++类。\n",
    "    * https://docs.unrealengine.com/zh-CN/Programming/QuickStart/index.html\n",
    "    * #include \"Components/StaticMeshComponent.h\"\n",
    "    * #include \"UObject/ConstructorHelpers.h\""
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 新建蓝图项目\n",
    "* 选择蓝图\n",
    "* 选择第一人称游戏\n",
    "* 修改项目名称(避免使用中文)\n",
    "\n",
    "![image.png](https://gitee.com/lhqer/cplusplus_junior_teacher/raw/master/img/UE4/BP/0001_2.png)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 拖入一个圆柱体\n",
    "注意是基础里面的圆柱体，不是几何体里面的圆柱体\n",
    "\n",
    "![image.png](https://gitee.com/lhqer/cplusplus_junior_teacher/raw/master/img/UE4/BP/0001_3.png)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 新建文件夹 matierial\n",
    "![image.png](https://gitee.com/lhqer/cplusplus_junior_teacher/raw/master/img/UE4/BP/0001_4.png)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 新建材质\n",
    "进入matierial文件夹，新建材质NewMaterial，双击进入编辑窗口\n",
    "![image.png](https://gitee.com/lhqer/cplusplus_junior_teacher/raw/master/img/UE4/BP/0001_5.png)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 改变材质颜色\n",
    "选择VectorParameter，改变基础颜色，保存\n",
    "![image.png](https://gitee.com/lhqer/cplusplus_junior_teacher/raw/master/img/UE4/BP/0001_6.png)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 转换为蓝图类\n",
    "在“世界大纲视图”，选中刚添加的圆柱体Cylinder，点击“蓝图/添加脚本”\n",
    "![image.png](https://gitee.com/lhqer/cplusplus_junior_teacher/raw/master/img/UE4/BP/0001_7.png)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 创建蓝图\n",
    "* 选择此文件夹\n",
    "\n",
    "![image.png](https://gitee.com/lhqer/cplusplus_junior_teacher/raw/master/img/UE4/BP/0001_8.png)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 被打击变颜色\n",
    "![image.png](https://gitee.com/lhqer/cplusplus_junior_teacher/raw/master/img/UE4/BP/0001_9.png)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 添加变量\n",
    "* 变量类型：Vector\n",
    "* 变量名称：LocationOffset\n",
    "* 变量默认值：(0,2,0)\n",
    "\n",
    "![image.png](https://gitee.com/lhqer/cplusplus_junior_teacher/raw/master/img/UE4/BP/0001_10.png)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 圆柱体可移动位置\n",
    "![image.png](https://gitee.com/lhqer/cplusplus_junior_teacher/raw/master/img/UE4/BP/0001_11.png)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 设置圆柱体可移动性\n",
    "* 文档：Actor移动性\n",
    "* https://docs.unrealengine.com/zh-CN/Engine/Actors/Mobility/index.html\n",
    "\n",
    "![image.png](https://gitee.com/lhqer/cplusplus_junior_teacher/raw/master/img/UE4/BP/0001_12.png)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 圆柱体改变移动方向\n",
    "* 文档：Event Begin Play\n",
    "* https://docs.unrealengine.com/zh-CN/Engine/Blueprints/UserGuide/Events/index.html#eventbeginplay\n",
    "* 文档 flipflop\n",
    "* https://docs.unrealengine.com/zh-CN/Engine/Blueprints/UserGuide/FlowControl/index.html#flipflop\n",
    "\n",
    "![image.png](https://gitee.com/lhqer/cplusplus_junior_teacher/raw/master/img/UE4/BP/0001_13.png)"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.3"
  },
  "toc": {
   "base_numbering": 1,
   "nav_menu": {},
   "number_sections": true,
   "sideBar": true,
   "skip_h1_title": false,
   "title_cell": "Table of Contents",
   "title_sidebar": "Contents",
   "toc_cell": false,
   "toc_position": {},
   "toc_section_display": true,
   "toc_window_display": true
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
